export const sleep = (callback: Function, time = 1000) => {
  return new Promise((resolve) => {
    setTimeout(() => {
      resolve(callback())
    }, time)
  })
}
